package adapter.practice_05;

/**
 * @author yi qiang
 * @date 2021/8/8 23:21
 */
public class Adapter implements IDst{

    ISrc iSrc;

    public Adapter(ISrc iSrc) {
        this.iSrc=iSrc;
    }

    @Override
    public void operator2() {
        System.out.println("内部兼容");
        iSrc.operator1();
    }
}
